﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WS.EKA.ServiceInterface;
using WS.EKA.Model;
using WS.EKA.DataAccess;

namespace WS.EKA.ServiceImpl
{
    public class PaymentService:IPayment
    {
        public List<Payment> GetList()
        {
            return PaymentContext.GetByConditions(null, t => t.OrderBy(x => x.OrderID));
        }

        public Payment GetPayment(Guid guid)
        {
            return PaymentContext.Get(guid);
        }
    }
}
